package net.gz01.wallet.message;


import com.alibaba.fastjson.annotation.JSONField;

public class BaseResp {

	@JSONField(ordinal=1)
	protected String version;
	@JSONField(ordinal=2)
	protected String orgCode;
	@JSONField(ordinal=3)
	protected String merchCode;
	@JSONField(ordinal=4)
	protected String bizType;
	@JSONField(ordinal=5)
	protected String respCode;
	@JSONField(ordinal=6)
	protected String respMsg;
	@JSONField(ordinal=99)
	protected String sign;

	public BaseResp(){

	}

	public BaseResp(BaseReq req) {
		this.version = req.getVersion();
		this.orgCode = req.getOrgCode();
		this.merchCode = req.getMerchCode();
		this.bizType = req.getBizType();
	}

	public BaseResp setCodeAndMsg(String code, String msg) {
		this.respCode = code;
		this.respMsg = msg;
		return this;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getOrgCode() {
		return orgCode;
	}

	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}

	public String getMerchCode() {
		return merchCode;
	}

	public void setMerchCode(String merchCode) {
		this.merchCode = merchCode;
	}

	public String getBizType() {
		return bizType;
	}

	public void setBizType(String bizType) {
		this.bizType = bizType;
	}

	public String getRespCode() {
		return respCode;
	}

	public void setRespCode(String respCode) {
		this.respCode = respCode;
	}

	public String getRespMsg() {
		return respMsg;
	}

	public void setRespMsg(String respMsg) {
		this.respMsg = respMsg;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

}
